home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2852 < prev    next >
Encoding:
Text File  |  1996-08-06  |  835 b   |  34 lines

  1. Path: news.drexel.edu!dunx1!st918h5w
  2. From: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman)
  3. Newsgroups: comp.lang.c++
  4. Subject: class declaration question
  5. Date: 20 Jan 1996 01:50:30 GMT
  6. Organization: Drexel University
  7. Message-ID: <4dphp6$1bp@noc2.drexel.edu>
  8. NNTP-Posting-Host: dunx1.ocs.drexel.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Is it necessary to do this:
  12.  
  13. class SomeClass
  14.     {
  15.     public:
  16.     void Somefunction(int SomeParameter);
  17.     }
  18.  
  19. or is it just as legal to do this:
  20. class SomeClass
  21.     {
  22.     public:
  23.     void SomeFunction(int);
  24.     }
  25.  
  26. The latter seems to be the convention, but why does the compiler need to
  27. know the name of SomeFunction's argument?  Isn't it sufficient to know the
  28. type of Somefunction's argument (namely, int)?  
  29.  
  30. Please reply by e-mail.  PS; thanks to all the people who answered my
  31. overloaded operator question.
  32.  
  33.                     Jon
  34.